<div class="panel panel-default">
	<div class="panel-heading">Condi&ccedil;&otilde;es de Pagamento</div>
	<div class="panel-body">
		<button class="btn btn-primary" id="btnAdicionar" ng-click="create()" data-toggle="modal" href="#editModal">Adicionar Novo</button>
		<div id="quicksearch" class="search-box">
			<input name="search" type="text" value="" placeholder="Pesquisar" ng-model="searchText"/>
		</div>
	</div>
	<table class="table table-striped table-bordered">
		<thead>
			<tr>
				<th>Forma de Pagamento</th>
				<th>Qtd. de Parcelas</th>
				<th>Valor M&iacute;nimo</th>
				<th>Dias Vencimento</th>
				<th width="60px">Editar</th>
				<th width="60px">Excluir</th>
			</tr>
		</thead>
		<tbody>
			<tr ng-repeat="item in itens | filter:searchText">
				<td>{{item.formaPagamento.descricao}}</td>
				<td>{{item.parcelas}}</td>
				<td>{{item.valorMinimo|currency}}</td>
				<td>{{item.diasVencimento}}</td>
				<td class="center">
					<button class='glyphicon glyphicon-edit' ng-click="edit(item)" data-toggle="modal" href="#editModal" role='button'></button>
				</td>
				<td class="center">
					<button class='glyphicon glyphicon-remove' ng-click="remove(item.id, $index)" role='button'></button>
				</td>
			</tr>
			<tr><td colspan="6" ng-hide="itens.length">Nenhum registro encontrado!</td></tr>
		</tbody>
	</table>
</div>
<div ng-include="'views/cond-pagto-detail.html'"></div>